package 剑指offer;

/**
 * 1+2+3+。。。+n
 */
public class Offer64_JZ47 {
    int res = 0;
    public int sumNums(int n) {
        boolean x = n > 1 && sumNums(n-1) > 0;
        res += n;
        return res;
    }
}
